package org.pupil.list;

/**
 * @Description: 链表
 * @Author: pupil
 * @Date: 2024/07/29 下午 12:05
 */
public class ListNode {

    public int val;

    public ListNode next;

    public ListNode(int value) {
        this.val = value;
    }

    public ListNode(int value, ListNode next) {
        this.val = value;
        this.next = next;
    }

    @Override
    public String toString() {
        return val + "->";
    }
}
